package com.example.demo.utils.list;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;

import java.util.List;

public class ListUtils {

    public static <S, T> List<T> copyListProperties(List<S> source, Class<T> target ){
        return JSONArray.parseArray(JSON.toJSONString(source),target);
    }
}
